package client.activity;

import android.os.Bundle;
import android.util.Log;

import androidx.appcompat.app.AppCompatActivity;
import androidx.core.content.ContextCompat;
import androidx.fragment.app.FragmentTransaction;

import client.PhotoPreviewClient;
import client.R;
import client.fragment.PhotoPickerPreviewFragment;
import client.osbar.OsBarUtil;

/**
 * 项目名称：client.activity
 * 创建人:LuoFG
 * 创建时间:2022/12/26  15:23
 * 描述:
 * 作用:
 */
public class PhotoPickerPActivity extends AppCompatActivity {

    private PhotoPickerPreviewFragment photoPickerPreviewFragment;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_photo_pickerp);

        OsBarUtil.setStatusBarColor(this, ContextCompat.getColor(this, PhotoPreviewClient.getClient().getBarTextColor()), ContextCompat.getColor(this, PhotoPreviewClient.getClient().getBarBgColor()));

        photoPickerPreviewFragment = new PhotoPickerPreviewFragment();
        FragmentTransaction transaction = getSupportFragmentManager().beginTransaction();
        transaction.replace(R.id.frameLayout, photoPickerPreviewFragment);
        transaction.commit();
        Log.e("PhotoPickerPActivity","加载图片预览");
    }


    @Override
    protected void onResume() {
        super.onResume();
        Log.e("PhotoPickerPActivity","继续");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.e("PhotoPickerPActivity","销毁");
    }
}
